//
//  BKUserLoginHeaderView.m
//  bestkeep
//
//  Created by windCould on 16/11/23.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKUserLoginHeaderView.h"
#import "BKMyCommon.h"
@interface BKUserLoginHeaderView ()

@property (nonatomic,strong)UIImageView * headImgV;

@end

@implementation BKUserLoginHeaderView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setUpViews];
        
    }
    
    return  self;
}

-(void)setUpViews{
    
    
    _headImgV = [[UIImageView alloc]initWithFrame:CGRectZero];
    _headImgV.image = [UIImage imageNamed:@"BK_My_loginBG"];
    _headImgV.contentMode =  UIViewContentModeScaleAspectFill;
    [self addSubview:_headImgV];
    [self layoutViews];
}

-(void)layoutViews{
    
    [_headImgV mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(self.mas_top).offset(0);
        make.left.mas_equalTo(self.mas_left).offset(20);
        make.right.mas_equalTo(self.mas_right).offset(-20);
        make.bottom.mas_equalTo(self.mas_bottom).offset(0);
    }];
    
}




@end
